package Computer.Event;
import Computer.Main.*;

public class Add extends Arithmetic {
	
	public Add(Pointer ptr1, Pointer ptr2, Address addr) {
		super(ptr1, ptr2, addr);
	}
	

	@Override
	public void operation(Memory memory) {
		memory.set(addr, ptr2.getWord(memory).add(ptr1.getWord(memory)));
	}


	@Override
	public String name() {
		return "ADD ";
	}

}
